-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Eliminate a ./configure bashism #8813
Conversation
configure uses /bin/sh, which is not necessarily bash. Fixes openzfs#8809 Signed-off-by: Richard Laager <rlaager@wiktel.com>
Codecov Report
@@ Coverage Diff @@
## master #8813 +/- ##
==========================================
+ Coverage 78.65% 78.92% +0.26%
==========================================
Files 382 382
Lines 117809 117809
==========================================
+ Hits 92662 92978 +316
+ Misses 25147 24831 -316
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
When I created this, I didn't see that #8731 already existed. That solution looks more comprehensive. |
Would like to point out that |
I'd forgotten #8731 as well. I do agree that if we can verify that |
Verified on dash 0.5.10.2. |
Agreed that |
Motivation and Context
configure
fails when/bin/sh
is not bash. See #8809.Description
This replaces
test "${PYTHON_VERSION:0:2}" = "2."
withecho "${PYTHON_VERSION}" | grep -q "^2\\."
.How Has This Been Tested?
I tested the individual snippets of code in
dash
andbash
. I can reproduce the problem that way. I haven't yet figured out how to reproduce the failure with./configure
from #8809. I probably need to be passing different arguments or something.Types of changes
Checklist:
Signed-off-by
.